package com.beijiteshop.shop.model.api.response

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/12 10:20
 * @Description
 */
data class OrderDetailBean(
    var address: String,
    var bus_Refund: List<RefundBean>,
    var can_Refund: Float,
    var consignee: String,
    var createTime: String,
    var discount: String,
    var discountCoupon: String,
    var groupGoods: List<GroupGood>,
    var marketPrice: String,
    var orderAmount: String,
    var orderNumber: String,
    var orderStatus: String,
    var payTime: String,
    var payWay: String,
    var phone: String,
    var postage: String,
    var remark: String,
    var sellingPrice: String
){
    val isCanRefund: Boolean
    get() {
        return can_Refund > 0f && payTime != "未付款"
    }
}

data class GroupGood(
    var bus_Order_GoodsID: String,
    var dhl: String?,
    var goods: List<OrderGood>?,
    var sendTime: String?,
    var signTime: String?,
    var trackingNumber: String?
)